package com.dm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dm.dao.PerationLogDAO;
import com.dm.entity.PerationLogDo;
import com.dm.entity.SysUserDO;
import com.dm.service.PerationLogService;


@Service
public class PerationLogServiceImpl implements PerationLogService {

	
	@Autowired
	PerationLogDAO perationLogDAO ;

	@Override
	public List<PerationLogDo> selectPerationLogList(PerationLogDo perationLogDo) {
		// TODO 自动生成的方法存根
		return perationLogDAO.selectPerationLogList(perationLogDo);
	}

	@Override
	public void dellog(PerationLogDo perationLogDo) {
		 perationLogDAO.dellog(perationLogDo);
	}

	@Override
	public void insert(PerationLogDo perationLogDo) {
		perationLogDAO.insertLog(perationLogDo);	
	}

	@Override
	public int countSelectLog() {
		// TODO 自动生成的方法存根
		return perationLogDAO.countSelectLog();
	}

	@Override
	public void deletePerationLogById(Long perationId) {
		// TODO 自动生成的方法存根
	}

	@Override
	public void upLogByUserId(SysUserDO upUser) {
		perationLogDAO.upLogByUserId(upUser.getUserId(),upUser.getName());
		
	} 
}
